<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>JavaScript标识放置

        <Head>...</Head>头部之间</title>
</head>

<body>
    <div id="context">你好</div>

    <script type="text/javascript">
        var Div = document.getElementById("context");
        console.log(Div);
    </script>



</body>

</html>